package cn.jtcoding.test2;

import cn.jtcoding.springframework.core.annotation.Component;
import cn.jtcoding.springframework.core.annotation.Service;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
@Service("cat")
public class Cat implements Animal {


    private Integer count = 100;


    @Override
    public void eat() {
        log.info("wang wang wang. {} ", count);
    }
}
